<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>筑奥设计管理后台</title>
        <link type="text/css" rel="stylesheet" href="/assets/css/form.css"/>
        <script type="text/javascript" rel="" src="/assets/js/jquery.js"></script>
        <script type="text/javascript" rel="" src="/assets/js/lib.js"></script>
        <script type="text/javascript">
            var SITE_URL = '<?PHP echo SITE_URL;?>';
            $(function(){
                $('form').submit(function(){
                    Z.ajax({
                        'url' : $(this).attr('action'),
                        'type': $(this).attr('method'),
                        'data': $(this).serialize(),
                        'success' : function(){
                            window.location.href = Z.url('/backend/entry/show/1');
                        }
                    });
                    
                    return false;
                });
            });
        </script>
        <style type="text/css">
            form{
                width:300px;margin:10% auto;
                padding: 20px;background-color: #f0f0f0;
            }
            form .form-row{padding: 10px 0;}
            form .form-row label{width: 60px;padding-right:20px;}
            form .form-row input{width: 170px;padding:5px;border: 1px solid #e0e0e0;}
            form .form-button{padding-left: 85px;}
        </style>
    </head>
    <body>
        <div id="z-body-container">
            <form action="/backend/auth/login" method="post">
                <div class="form-row">
                    <label for="username">帐号</label>
                    <input type="text" name="username" />
                </div>
                <div class="form-row">
                    <label for="password">密码</label>
                    <input type="password" name="password" />
                </div>
                <div class="form-button">
                    <input type="submit" name="submit" value="登入"/>
                </div>
            </form>
        </div>
    </body>
</html>

